package com.qk.management.controller;

import com.qk.common.PageResult;
import com.qk.common.Result;
import com.qk.domain.log.OperatrLogDO;
import com.qk.dto.log.OperateLogDTO;
import com.qk.management.service.OperateLogService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@Slf4j
@RestController
@RequestMapping("/logs")
@SuppressWarnings("all")
public class OperateLogController {
    @Autowired
    private OperateLogService operateLogService;
    
    @GetMapping
    public Result list(OperateLogDTO dto) {
        log.info("日志列表查询，参数: {}", dto);
        PageResult<OperatrLogDO> result = operateLogService.list(dto);
        return Result.success(result);
    }
}